<?php if (!isset($kw_config)) exit; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php if (kw_is_post() || kw_is_page()) { kw_the_title(); ?> | <?php kw_site_name(); } else { kw_site_name(); ?> | <?php kw_site_desc(); }?></title>
<link href="<?php kw_theme_url('css/style.css'); ?>" type="text/css" rel="stylesheet"/>
<script language="javascript" src="<?php kw_theme_url('js/jquery.js'); ?>"></script>
<script language="javascript" src="<?php kw_theme_url('js/superslide.2.1.js'); ?>"></script>
</head>
<body>
<div class="top">
  <div class="header">
    <div class="logo"><a href="<?php kw_site_link(); ?>" title="<?php kw_site_name(); ?>"><?php kw_site_name(); ?></a></div>
    <div class="header_r">
      <div class="header_icon">
        <ul>
          <li><a href="http://weibo.com/<?php echo $kw_index_config['header_weibo_xl'];?>" title="新浪微博" target="_blank"><img src="<?php kw_theme_url('css/images/weibo_xl.png'); ?>" alt="新浪微博" width="26" height="26" /></a></li> 
          <li><a href="http://t.qq.com/<?php echo $kw_index_config['header_weibo_tx'];?>" title="腾讯微博" target="_blank"><img src="<?php kw_theme_url('css/images/weibo_tx.png'); ?>" alt="腾讯微博" width="26" height="26" /></a></li>
          <li class="kw_tel"><span><?php echo $kw_index_config['contact_tel'];?></span></li>
        </ul>
      </div>
      <div class="menu">
        <ul>
            <li><a href="<?php kw_site_link(); ?>"><span>首页</span></a></li>
            <?php foreach ($kw_categories as $k => $v) { 
                if($v['show'] == '1' || $v['show'] == '3'){
            ?>
            <li><a href="<?php 
                $urlStr = "";
                foreach ($v['pages'] as $kp => $vp) {
                    $urlStr = $kp;
                    echo $kw_config['site_link'].'?'.$urlStr. '/';
                    break;
                }
             ?>" <?php if (substr($qs,0,-1) == $urlStr) echo ' class="current"'; ?>><span><?php echo $v['name']; ?></span></a></li>
            <?php } } ?>
            <li><a href="guestbook.php" <?php if(substr($qs,0,-1) == 'guestbook') echo ' class="current"'; ?>><span>在线留言</span></a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
<div class="clear"></div>